'use strict';

module.exports = function(server) {
  const now = new Date().getTime();
  const adminUser = {
    "username": "admin",
    "password": "Q!W@e3r4",
    "email": "admin@opsmart.com",
    "status": 1,
    "created_time": now
  };
  const adminRole = {
    "code": "000000",
    "name": "系统管理员",
    "created_date": now
  };
  const defaultModule = [
    { "code": "0101", "name": "系统用户管理", "url": "/general/user", "view_order": 1, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0102", "name": "系统角色管理", "url": "/general/role", "view_order": 2, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0103", "name": "菜单管理", "url": "/general/menu", "view_order": 3, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0104", "name": "组织机构", "url": "/general/org", "view_order": 4, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0105", "name": "人员管理", "url": "/general/person", "view_order": 5, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0106", "name": "病房管理", "url": "/general/inpatientroom", "view_order": 6, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0107", "name": "个人设置", "url": "/general/usersetting", "view_order": 7, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0201", "name": "预约主页", "url": "/reservebed/homepage", "view_order": 1, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now },
    { "code": "0202", "name": "床位概览", "url": "/reservebed/bedsoverview", "view_order": 2, "menu_icon": "", "page_type": 1, "status": 1, "memo": "", "published_time": now }
  ];
}
